/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
package com.erp.prod.mrp.service;

import java.util.List;

import org.redragon.framework.hibernate.DaoCRUDIF;

import com.erp.prod.mrp.dao.model.ProdMrpBillR;
import com.erp.prod.mrp.dao.model.ProdMrpBillRCO;

public interface ProdMrpBillRService extends DaoCRUDIF<ProdMrpBillR, ProdMrpBillRCO> {
    
    //根据mrp头编码删除关联
    public abstract void deleteRelateByMrpHeadCode(String mrpHeadCode);
    
    //是否存在MRP行的采购计划关联
    public abstract boolean isExistMrpLineRelateBill(String mrpHeadCode, String mrpLineCode, String billType);
    
    //根据mrp头编码获取关联
    public abstract List<ProdMrpBillR> getRelateByMrpHeadCode(String mrpHeadCode, String billType);
    
}
